package com.ch04.mapper;


import com.ch04.pojo.Dormitory;
import org.apache.ibatis.annotations.Param;

/**
 * @InterfaceName Dormitory
 * @Description TODO
 * @Author Kx
 * @Date 2025/4/21 19:43
 * @Version 1.0
 */
public interface DormitoryMapper {
    /** 
     * @author: kx
     * @date: 2025/4/23 19:43
     * @param dormitoryId : 宿舍编号
     * @return com.ch04.pojo.Dormitory
     * @description: 根据id查询宿舍信息
    */
    Dormitory getDormitoryId(int dormitoryId);

    /**
     * @author: kx
     * @date: 2025/4/23 19:47
     * @param name : 姓名
     * @param clsName : 班级
     * @return com.ch04.pojo.Dormitory
     * @description: 根据姓名和班级查询宿舍信息
    */
    Dormitory getDormitory(@Param("name") String name, @Param("clsName") String clsName);
}
